package com.liycloud.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 订单表明细表
 *
 */
@Data
@ApiModel(value = "订单表明细")
@TableName("mall_order_detail")
public class OrderDetailEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private String id;

	/**
	 * 订单单号
	 */
	@ApiModelProperty(value = "订单单号")
	private String order_no;

	/**
	 * 商品ID
	 */
	@ApiModelProperty(value = "商品ID")
	private String product_id;

	/**
	 * 商品名称
	 */
	@ApiModelProperty(value = "商品名称")
	private String product_name;

	/**
	 * 购买数量
	 */
	@ApiModelProperty(value = "购买数量")
	private String number;

	/**
	 * 租户ID
	 */
	@ApiModelProperty(value = "用户所属租户id")
	private Integer tenantId;


}

